import request from '@/utils/request'
import service from '@/utils/api'
// ------------------------------------------------用户---------------------------
// 套餐记录
export function userSet(data) {
  return service({
    url: '/admin/user/userSet',
    method: 'post',
    data
  })
}
// 用户套餐卡转店
export function transfer(data) {
  return service({
    url: '/admin/user/transfer',
    method: 'post',
    data
  })
}
//使用套餐列表信息
export function usersetMeal(data) {
  return service({
    url: '/admin/user/setMeal',
    method: 'post',
    data
  })
}
// 固定座位
export function userFixed(data) {
  return request({
    url: '/admin/user/userFixed',
    method: 'post',
    data
  })
}
export function userSeat(data) {
  return request({
    url: '/admin/user/userSeat',
    method: 'post',
    data
  })
}
// 套餐操作 修改有效期
export function operation(data) {
  return service({
    url: '/admin/user/operation',
    method: 'post',
    data
  })
}

// 充值记录
export function userChange(data) {
  return service({
    url: '/admin/user/userChange',
    method: 'post',
    data
  })
}
// 预约记录
export function userAppointment(data) {
  return service({
    url: '/admin/user/userAppointment',
    method: 'post',
    data
  })
}
// 取消订单
export function userOrderCancel(data) {
  return service({
    url: '/admin/user/userOrderCancel',
    method: 'post',
    data
  })
}
// 添加预约信息  座位列表
export function appointReturn(data) {
  return request({
    url: '/admin/user/appointReturn',
    method: 'post',
    data
  })
}
// 添加固定座位返参
export function appointmentReturn(data) {
  return request({
    url: '/admin/user/appointmentReturn',
    method: 'post',
    data
  })
}
// 添加预约信息  套餐列表
export function packages(data) {
  return request({
    url: '/admin/user/package',
    method: 'post',
    data
  })
}
// 添加预约
export function appointmentAdd(data) {
  return request({
    url: '/admin/user/appointmentAdd',
    method: 'post',
    data
  })
}
// 消费记录
export function consume(data) {
  return service({
    url: '/admin/user/consume',
    method: 'post',
    data
  })
}
// 消费记录  门店选择套餐
export function choice(data) {
  return request({
    url: '/admin/user/choice',
    method: 'post',
    data
  })
}
// 大众美团  门店多选套餐
export function setList(data) {
  return request({
    url: '/admin/coupon/setList',
    method: 'post',
    data
  })
}
// 消费记录  预约选择套餐
export function packageReturn(data) {
  return service({
    url: '/admin/user/packageReturn',
    method: 'post',
    data
  })
}

// 消费记录  购买套餐
export function buymeal(data) {
  return service({
    url: '/admin/user/meal',
    method: 'post',
    data
  })
}
// 会议室记录
export function meeting(data) {
  return service({
    url: '/admin/user/meeting',
    method: 'post',
    data
  })
}
// 预约记录 退款
export function reimburse(data) {
  return service({
    url: '/admin/user/reimburse',
    method: 'post',
    data
  })
}
// 会议室记录  退款
export function drawback(data) {
  return service({
    url: '/admin/user/drawback',
    method: 'post',
    data
  })
}
// 邀请记录
export function invitation(data) {
  return service({
    url: '/admin/user/invitation',
    method: 'post',
    data
  })
}
// 添加标签
export function userLabel(data) {
  return service({
    url: '/admin/user/userLabel',
    method: 'post',
    data
  })
}
// 删除标签
export function labelDel(data) {
  return service({
    url: '/admin/user/labelDel',
    method: 'post',
    data
  })
}
// 用户充值操作
export function userChangeOrder(data) {
  return service({
    url: '/admin/user/userChangeOrder',
    method: 'post',
    data
  })
}
// 套餐列表删除
export function setMealDel(data) {
  return service({
    url: '/admin/user/setMealDel',
    method: 'post',
    data
  })
}
// 用户门店储值卡列表
export function stored(data) {
  return service({
    url: '/admin/user/stored',
    method: 'post',
    data
  })
}
export function couponDel(data) {
  return service({
    url: '/admin/user/couponDel',
    method: 'post',
    data
  })
}
// 用户 
export function couponList(data) {
  return service({
    url: '/admin/user/couponList',
    method: 'post',
    data
  })
}
// 用户门店储值卡扣减
export function storedSub(data) {
  return service({
    url: '/admin/user/storedSub',
    method: 'post',
    data
  })
}
export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}
export function getUserList(data) {
  return service({
    url: '/admin/user/userInfo',
    method: 'post',
    data
  })
}
export function Add(data) {
  return request({
    url: '/admin/user/userInfoAdd',
    method: 'post',
    data
  })
}
export function Addcontent(data) {
  return request({
    url: '/admin/user/addContent',
    method: 'post',
    data
  })
}
export function userInfoEdit(data) {
  return service({
    url: '/admin/user/userInfoEdit',
    method: 'post',
    data
  })
}
//激活
export function userStatus(data) {
  return service({
    url: '/admin/user/userStatus',
    method: 'post',
    data
  })
}
//人员设置
export function userPersonnel(data) {
  return service({
    url: '/admin/user/userPersonnel',
    method: 'post',
    data
  })
}
//人员列表类型
export function userClass(data) {
  return service({
    url: '/admin/user/userClass',
    method: 'post',
    data
  })
}
//用户删除
export function userdelete(data) {
  return service({
    url: '/admin/user/delete',
    method: 'post',
    data
  })
}
// --------------------------------------------门店----------------------------------------------
// 获取最高权限-门店列表
export function storeList(data) {
  return service({
    url: '/admin/store/storeList',
    method: 'post',
    data
  })
}
// 门店添加
export function storeAdd(data) {
  return service({
    url: '/admin/store/storeAdd',
    method: 'post',
    data
  })
}
//门店删除
export function storeDel(data) {
  return service({
    url: '/admin/store/storeDel',
    method: 'post',
    data
  })
}
// 门店停用启用
export function status(data) {
  return service({
    url: '/admin/store/status',
    method: 'post',
    data
  })
}
// 门店列表获取下拉数据
export function returnStore(data) {
  return service({
    url: '/admin/store/returnStore',
    method: 'post',
    data
  })
}
//获取编辑门店信息
export function storeReturn(data) {
  return service({
    url: '/admin/store/storeReturn',
    method: 'post',
    data
  })
}

//编辑门店基本信息
export function storeEdit(data) {
  return service({
    url: '/admin/store/storeEdit',
    method: 'post',
    data
  })
}
//获取门店高级设置
export function storeSeniorReturn(data) {
  return service({
    url: '/admin/store/storeSeniorReturn',
    method: 'post',
    data
  })
}
//开门
export function storeSeniorDoorOpen(data) {
  return service({
    url: '/admin/store/storeSeniorDoorOpen',
    method: 'post',
    data
  })
}
//获取高级设置门禁列表
export function storeSeniorDoorL(data) {
  return service({
    url: '/admin/store/storeSeniorDoorL',
    method: 'post',
    data
  })
}
//保存高级设置
export function storeSeniorEdit(data) {
  return service({
    url: '/admin/store/storeSeniorEdit',
    method: 'post',
    data
  })
}
//获取座位列表
export function storeSeniorSeatL(data) {
  return service({
    url: '/admin/store/storeSeniorSeatL',
    method: 'post',
    data
  })
}
//获取座位类别
export function storeGenreType(data) {
  return request({
    url: '/admin/store/storeGenreType',
    method: 'post',
    data
  })
}

//添加座位
export function storeSeniorSeatA(data) {
  return service({
    url: '/admin/store/storeSeniorSeatA',
    method: 'post',
    data
  })
}

// 编辑座位
export function storeSeatNameEdit(data) {
  return service({
    url: '/admin/store/storeSeatNameEdit',
    method: 'post',
    data
  })
}
//座位类别设置列表
export function storeSeniorGenreL(data) {
  return service({
    url: '/admin/store/storeSeniorGenreL',
    method: 'post',
    data
  })
}
//取消/绑定
export function storeSeniorSeatC(data) {
  return service({
    url: '/admin/store/storeSeniorSeatC',
    method: 'post',
    data
  })
}

//编辑类别配置保存
export function storeSeniorGenreE(data) {
  return request({
    url: '/admin/store/storeSeniorGenreE',
    method: 'post',
    data
  })
}
//删除座位
export function storeSeniorSeatD(data) {
  return request({
    url: '/admin/store/storeSeniorSeatD',
    method: 'post',
    data
  })
}
//座位设备停用启用
export function storeSeniorSeatP(data) {
  return request({
    url: '/admin/store/storeSeniorSeatP',
    method: 'post',
    data
  })
}

//获取房间列表
export function storeSeniorRoomL(data) {
  return service({
    url: '/admin/store/storeSeniorRoomL',
    method: 'post',
    data
  })
}
//添加编辑房间 新增时传0
export function storeSeniorRoomA(data) {
  return service({
    url: '/admin/store/storeSeniorRoomA',
    method: 'post',
    data
  })
}
//删除房间
export function storeSeniorRoomD(data) {
  return service({
    url: '/admin/store/storeSeniorRoomD',
    method: 'post',
    data
  })
}
//添加预约
export function storeSeniorRoomM(data) {
  return service({
    url: '/admin/store/storeSeniorRoomM',
    method: 'post',
    data
  })
}
//会议室添加
export function album(data) {
  return service({
    url: '/admin/store/album',
    method: 'post',
    data
  })
}

//会议室编辑
export function albumEdit(data) {
  return service({
    url: '/admin/store/albumEdit',
    method: 'post',
    data
  })
}
//获取货柜列表
export function storeSeniorContainerL(data) {
  return service({
    url: '/admin/store/storeSeniorContainerL',
    method: 'post',
    data
  })
}
//添加货柜
export function storeSeniorContainerA(data) {
  return service({
    url: '/admin/store/storeSeniorContainerA',
    method: 'post',
    data
  })
}
//货柜收费设置
export function storeSeniorContainerE(data) {
  return service({
    url: '/admin/store/storeSeniorContainerE',
    method: 'post',
    data
  })
}
//货柜启用停用
export function storeSeniorContainerP(data) {
  return service({
    url: '/admin/store/storeSeniorContainerP',
    method: 'post',
    data
  })
}
//货柜删除
export function storeSeniorContainerD(data) {
  return service({
    url: '/admin/store/storeSeniorContainerD',
    method: 'post',
    data
  })
}
//刷新货柜
export function storeSeniorContainerRefresh(data) {
  return service({
    url: '/admin/store/storeSeniorContainerRefresh',
    method: 'post',
    data
  })
}
//货柜开柜
export function storeSeniorContainerOpen(data) {
  return service({
    url: '/admin/store/storeSeniorContainerOpen',
    method: 'post',
    data
  })
}
//货柜占柜
export function storeSeniorContainerZhan(data) {
  return service({
    url: '/admin/store/storeSeniorContainerZhan',
    method: 'post',
    data
  })
}
//取消占柜
export function cancelstoreSeniorContainerZhan(data) {
  return service({
    url: '/admin/store/storeSeniorContainerNotZhan',
    method: 'post',
    data
  })
}
//货柜编辑
export function storeSeniorContainerEdit(data) {
  return service({
    url: '/admin/store/storeSeniorContainerEdit',
    method: 'post',
    data
  })
}
//获取门禁列表
export function storeDoorL(data) {
  return service({
    url: '/admin/store/storeDoorL',
    method: 'post',
    data
  })
}
//删除门禁
export function storeDoorD(data) {
  return service({
    url: '/admin/store/storeDoorD',
    method: 'post',
    data
  })
}

// --------------------------------------------系统----------------------------------------------
// 系统管理
export function installmodel(data) {
  return service({
    url: '/admin/system/index',
    method: 'post',
    data
  })
}
// 系统管理 -- 修改
export function indexInfo(data) {
  return service({
    url: '/admin/system/indexInfo',
    method: 'post',
    data
  })
}
// 获取菜单id
export function highest(data) {
  return service({
    url: '/admin/index/highest',
    method: 'post',
    data
  })
}
//帮助管理
export function help(data) {
  return service({
    url: '/admin/system/help',
    method: 'post',
    data
  })
}
//帮助管理 -- 添加
export function helpAdd(data) {
  return service({
    url: '/admin/system/helpAdd',
    method: 'post',
    data
  })
}

//帮助管理 -- 修改
export function helpEdit(data) {
  return service({
    url: '/admin/system/helpEdit',
    method: 'post',
    data
  })
}
//帮助管理 -- 删除
export function helpDelete(data) {
  return service({
    url: '/admin/system/helpDelete',
    method: 'post',
    data
  })
}
//座位类别列表
export function genre(data) {
  return service({
    url: '/admin/system/genre',
    method: 'post',
    data
  })
}
//座位类别添加
export function genreAdd(data) {
  return service({
    url: '/admin/system/genreAdd',
    method: 'post',
    data
  })
}
//座位类别修改
export function genreEdit(data) {
  return service({
    url: '/admin/system/genreEdit',
    method: 'post',
    data
  })
}
//座位排序
export function genreSort(data) {
  return service({
    url: '/admin/system/genreSort',
    method: 'post',
    data
  })
}
//停用启用
export function genreStatus(data) {
  return service({
    url: '/admin/system/genreStatus',
    method: 'post',
    data
  })
}
//座位删除
export function genreDelete(data) {
  return service({
    url: '/admin/system/genreDelete',
    method: 'post',
    data
  })
}
//座位图册列表
export function genreAtlasIndex(data) {
  return service({
    url: '/admin/system/genreAtlasIndex',
    method: 'post',
    data
  })
}
//座位图册添加
export function genreAtlas(data) {
  return service({
    url: '/admin/system/genreAtlas',
    method: 'post',
    data
  })
}
//座位图册删除
export function genreAtlasDelete(data) {
  return service({
    url: '/admin/system/genreAtlasDelete',
    method: 'post',
    data
  })
}
// 轮播图-------------------------------------------------------
export function banner(data) {
  return service({
    url: '/admin/system/banner',
    method: 'post',
    data
  })
}
// 轮播图添加
export function bannerAdd(data) {
  return service({
    url: '/admin/system/bannerAdd',
    method: 'post',
    data
  })
}
// 轮播图编辑
export function bannerEdit(data) {
  return service({
    url: '/admin/system/bannerEdit',
    method: 'post',
    data
  })
}

// 轮播图删除
export function bannerDelete(data) {
  return service({
    url: '/admin/system/bannerDelete',
    method: 'post',
    data
  })
}
// ------------设备设施------------
// 设备设施列表
export function device(data) {
  return service({
    url: '/admin/system/device',
    method: 'post',
    data
  })
}
// 设备设施修改
export function deviceEdit(data) {
  return service({
    url: '/admin/system/deviceEdit',
    method: 'post',
    data
  })
}

// 其他-------------------------------------------------------
export function other(data) {
  return service({
    url: '/admin/system/other',
    method: 'post',
    data
  })
}
// 其他-新增------------------------------------------------------
export function otherAddList(data) {
  return service({
    url: '/admin/system/otherAddList',
    method: 'post',
    data
  })
}
// 其他-修改------------------------------------------------------
export function otherEdit(data) {
  return service({
    url: '/admin/system/otherEdit',
    method: 'post',
    data
  })
}

// 其他-删除------------------------------------------------------
export function otherDelete(data) {
  return service({
    url: '/admin/system/otherDelete',
    method: 'post',
    data
  })
}
// 门店管理列表------------------------------------------------------
export function store(data) {
  return service({
    url: '/admin/system/store',
    method: 'post',
    data
  })
}
// 大众美团记录------------------------------------------------------
export function volksw(data) {
  return service({
    url: '/admin/system/volksw',
    method: 'post',
    data
  })
}
// 修改绑定-
export function unbind(data) {
  return service({
    url: '/admin/system/unbind',
    method: 'post',
    data
  })
}

// --------------------------------------------成员管理----------------------------------------------
// 获取角色列表
export function rolelist(data) {
  return service({
    url: '/admin/platRole/list',
    method: 'post',
    data
  })
}
// 获取管理员列表
export function manageList(data) {
  return service({
    url: '/admin/admin/list',
    method: 'post',
    data
  })
}

// 获取角色列表
export function manage(data) {
  return request({
    url: '/admin/platRole/manage',
    method: 'post',
    data
  })
}

// 添加角色
export function addRole(data) {
  return service({
    url: '/admin/platRole/add',
    method: 'post',
    data
  })
}
// 添加成员
export function addmember(data) {
  return service({
    url: '/admin/platRole/addRole',
    method: 'post',
    data
  })
}
// 添加接口反参
export function addResult(data) {
  return request({
    url: '/admin/platRole/addResult',
    method: 'post',
    data
  })
}
export function editRole(data) {
  return service({
    url: '/admin/platRole/edit',
    method: 'post',
    data
  })
}
// 获取按钮权限
export function lists(data) {
  return request({
    url: '/admin/platRule/lists',
    method: 'post',
    data
  })
}
// 编辑角色 -- 获取信息
export function edits(data) {
  return service({
    url: '/admin/platRole/edits',
    method: 'post',
    data
  })
}
// 编辑成员
export function editMember(data) {
  return service({
    url: '/admin/platRole/editRole',
    method: 'post',
    data
  })
}

// 删除角色
export function roledelete(data) {
  return service({
    url: '/admin/platRole/delete',
    method: 'post',
    data
  })
}
// --------------------------------------------售卖----------------------------------------------
// 充值管理
export function rechargeindex(data) {
  return service({
    url: '/admin/sell/index',
    method: 'post',
    data
  })
}
// 充值管理 -- 充值管理(显示)
export function rechargeshow(data) {
  return service({
    url: '/admin/sell/show',
    method: 'post',
    data
  })
}
// 充值管理 -- 充值管理(添加)
export function rechargesellAdd(data) {
  return service({
    url: '/admin/sell/sellAdd',
    method: 'post',
    data
  })
}

// 充值管理 -- 充值管理(启用/停用)
export function rechargeenable(data) {
  return service({
    url: '/admin/sell/enable',
    method: 'post',
    data
  })
}
// 充值管理 -- 充值管理 修改
export function rechargesellEdit(data) {
  return service({
    url: '/admin/sell/sellEdit',
    method: 'post',
    data
  })
}
// 充值管理 -- 充值管理 删除
export function rechargesellDelete(data) {
  return service({
    url: '/admin/sell/sellDelete',
    method: 'post',
    data
  })
}
// 营业数据 - 座位预约
export function sellBusines(data) {
  return service({
    url: '/admin/sell/sellBusines',
    method: 'post',
    data
  })
}
// 营业数据 - 座位预约 - 提前结束
export function sellEnd(data) {
  return service({
    url: '/admin/sell/sellEnd',
    method: 'post',
    data
  })
}

// 营业数据 - 座位预约 - 延长订单
export function sellExtend(data) {
  return service({
    url: '/admin/sell/sellExtend',
    method: 'post',
    data
  })
}
// 营业数据 - 座位预约 - 签退
export function sellSignout(data) {
  return service({
    url: '/admin/sell/sellSignout',
    method: 'post',
    data
  })
}

// 营业数据 - 座位预约 - 取消订单
export function sellCancel(data) {
  return service({
    url: '/admin/sell/sellCancel',
    method: 'post',
    data
  })
}
// 营业数据 - 座位预约 - 数据分析
export function sellAnalyse(data) {
  return request({
    url: '/admin/sell/sellAnalyse',
    method: 'post',
    data
  })
}
// 营业数据 - 消费记录 - 数据分析
export function sellConAnalysis(data) {
  return request({
    url: '/admin/sell/sellConAnalysis',
    method: 'post',
    data
  })
}
// 营业数据 - 充值记录 - 数据分析
export function sellReaAnalysis(data) {
  return request({
    url: '/admin/sell/sellReaAnalysis',
    method: 'post',
    data
  })
}
// 营业数据 - 会议室
export function sellConference(data) {
  return service({
    url: '/admin/sell/sellConference',
    method: 'post',
    data
  })
}
// 营业数据 - 会议室 提前结束
export function roomEnd(data) {
  return service({
    url: '/admin/sell/roomEnd',
    method: 'post',
    data
  })
}
// 营业数据 - 会议室 延长订单
export function roomExtend(data) {
  return service({
    url: '/admin/sell/roomExtend',
    method: 'post',
    data
  })
}
// 营业数据 - 会议室 取消订单
export function roomCancel(data) {
  return service({
    url: '/admin/sell/roomCancel',
    method: 'post',
    data
  })
}
// 营业数据 - 会议室 签退
export function roomConference(data) {
  return service({
    url: '/admin/sell/roomConference',
    method: 'post',
    data
  })
}

// 营业数据 - 门禁
export function sellEntrance(data) {
  return service({
    url: '/admin/sell/sellEntrance',
    method: 'post',
    data
  })
}
// 营业数据 - 操作记录
export function sellOperate(data) {
  return service({
    url: '/admin/sell/sellOperate',
    method: 'post',
    data
  })
}
// 营业数据 - 消费记录
export function sellConsume(data) {
  return service({
    url: '/admin/sell/sellConsume',
    method: 'post',
    data
  })
}
// 营业数据 - 充值记录
export function sellRecharge(data) {
  return service({
    url: '/admin/sell/sellRecharge',
    method: 'post',
    data
  })
}
// 营业数据 - 套餐记录
export function sellSetmeal(data) {
  return service({
    url: '/admin/sell/sellSetmeal',
    method: 'post',
    data
  })
}
// 营业数据 - 通知记录
export function sellNotice(data) {
  return service({
    url: '/admin/sell/sellNotice',
    method: 'post',
    data
  })
}
// 营业数据 - 储物柜记录
export function sellLocker(data) {
  return service({
    url: '/admin/sell/sellLocker',
    method: 'post',
    data
  })
}
// 套餐管理 - 套餐列表
export function setMeal(data) {
  return service({
    url: '/admin/sell/setMeal',
    method: 'post',
    data
  })
}
// 套餐管理 - 套餐列表s
export function setMeals(data) {
  return request({
    url: '/admin/sell/setMeal',
    method: 'post',
    data
  })
}
// 套餐管理 - 新增套餐
export function setMealAdd(data) {
  return service({
    url: '/admin/sell/setMealAdd',
    method: 'post',
    data
  })
}
// 套餐管理 - 新增套餐-反参(适用门店，适用座位类型)
export function setReturn(data) {
  return service({
    url: '/admin/sell/setReturn',
    method: 'post',
    data
  })
}
export function setReturns(data) {
  return request({
    url: '/admin/sell/setReturn',
    method: 'post',
    data
  })
}
// 套餐管理 - 新增套餐-反参
export function setMealReturn(data) {
  return service({
    url: '/admin/sell/setMealReturn',
    method: 'post',
    data
  })
}
// 套餐管理 - 排序
export function setMealSort(data) {
  return service({
    url: '/admin/sell/setMealSort',
    method: 'post',
    data
  })
}
// 套餐管理 - 套餐列表(启用，停用)
export function setMealDeactivate(data) {
  return service({
    url: '/admin/sell/setMealDeactivate',
    method: 'post',
    data
  })
}
// 套餐管理 - 套餐列表(显示，隐藏)
export function setMealShow(data) {
  return service({
    url: '/admin/sell/setMealShow',
    method: 'post',
    data
  })
}
// 套餐管理 - 套餐列表 删除
export function setMealDelete(data) {
  return service({
    url: '/admin/sell/setMealDelete',
    method: 'post',
    data
  })
}
// 套餐管理 - 编辑
export function setMealEdit(data) {
  return service({
    url: '/admin/sell/setMealEdit',
    method: 'post',
    data
  })
}
// 套餐管理 - 添加折扣活动
export function setDiscount(data) {
  return service({
    url: '/admin/sell/setDiscount',
    method: 'post',
    data
  })
}
// 套餐管理 - 折扣修改
export function activityEdit(data) {
  return service({
    url: '/admin/sell/activityEdit',
    method: 'post',
    data
  })
}

// 套餐管理 - 折扣删除
export function activityDel(data) {
  return service({
    url: '/admin/sell/activityDel',
    method: 'post',
    data
  })
}

// 套餐管理 - 折扣停用
export function activityStop(data) {
  return service({
    url: '/admin/sell/activityStop',
    method: 'post',
    data
  })
}

// --------------------------------------------成员----------------------------------------------
// 成员 更改授权门店
export function adminAuth(data) {
  return service({
    url: '/admin/platRole/upRole',
    method: 'post',
    data
  })
}
// 成员 转移成员
export function shiftRole(data) {
  return service({
    url: '/admin/platRole/shiftRole',
    method: 'post',
    data
  })
}

// 删除管理员
export function deladmin(data) {
  return service({
    url: '/admin/admin/delete',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
// --------------------------------------------其他----------------------------------------------
export function messopinion(data) {
  return service({
    url: '/admin/system/opinion',
    method: 'post',
    data
  })
}
//活动码
export function activity(data) {
  return service({
    url: '/admin/system/activity',
    method: 'post',
    data
  })
}
//活动码添加
export function activityAdd(data) {
  return service({
    url: '/admin/system/activityAdd',
    method: 'post',
    data
  })
}
//活动码编辑
export function meituanactivityEdit(data) {
  return service({
    url: '/admin/system/activityEdit',
    method: 'post',
    data
  })
}
//活动码删除
export function meituanactivityDel(data) {
  return service({
    url: '/admin/system/activityDel',
    method: 'post',
    data
  })
}
//门店筛选套餐
export function setmeal(data) {
  return request({
    url: '/admin/system/setmeal',
    method: 'post',
    data
  })
}

// --------------------------------------------其他添加----------------------------------------------
export function otherAdd(data) {
  return service({
    url: '/admin/system/otherAdd',
    method: 'post',
    data
  })
}
//刷新美团授权
export function refreshSession(data) {
  return service({
    url: '/admin/system/refreshSession',
    method: 'post',
    data
  })
}
//美团套餐列表
export function Meituanlist(data) {
  return service({
    url: '/admin/coupon/list',
    method: 'post',
    data
  })
}
//美团套餐列表添加
export function Meituanadd(data) {
  return service({
    url: '/admin/coupon/add',
    method: 'post',
    data
  })
}
//美团套餐列表编辑
export function Meituanedit(data) {
  return service({
    url: '/admin/coupon/edit',
    method: 'post',
    data
  })
}
// //套餐列表
// export function Meituanmeallist(data) {
//   return service({
//     url: '/admin/coupon/setInfo',
//     method: 'post',
//     data
//   })
// }
//美团套餐列表删除
export function Meituandelete(data) {
  return service({
    url: '/admin/coupon/delete',
    method: 'post',
    data
  })
}
//查看是否添加过美团id
export function isCoupon(data) {
  return request({
    url: '/admin/coupon/isCoupon',
    method: 'post',
    data
  })
}
//座位预约下载
export function sellAnalyseUpload(data) {
  return service({
    url: '/admin/sell/sellAnalyseUpload',
    method: 'post',
    data
  })
}
//消费记录下载
export function sellConUpload(data) {
  return service({
    url: '/admin/sell/sellConUpload',
    method: 'post',
    data
  })
}
//充值记录下载
export function sellReaUpload(data) {
  return service({
    url: '/admin/sell/sellReaUpload',
    method: 'post',
    data
  })
}

